package com.example.administrator.jingpingou.bean;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * Created by Administrator on 2016/8/30 0030.
 */
@Table(name="commodity")
public class CommodityBean {
    @Column(name="id",isId = true,autoGen = true)
    private int id;
    @Column(name = "name")
    private String name;
    @Column(name = "title")
    private String  title;
    @Column(name = "pic_url")
    private String pic_url;
    @Column(name = "origin_price")
    private String origin_price;
    @Column(name="now_price")
    private String now_price;
    @Column(name = "discount")
    private String discount;
    @Column(name = "count")
    private String count;
    @Column(name="isChecked")
    private boolean isChecked;

    public boolean isChecked() {
        return isChecked;
    }


    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPic_url() {
        return pic_url;
    }

    public void setPic_url(String pic_url) {
        this.pic_url = pic_url;
    }

    public String getOrigin_price() {
        return origin_price;
    }

    public void setOrigin_price(String origin_price) {
        this.origin_price = origin_price;
    }

    public String getNow_price() {
        return now_price;
    }

    public void setNow_price(String now_price) {
        this.now_price = now_price;
    }

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }

    @Override
    public String toString() {
        return "CommodityBean{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", pic_url='" + pic_url + '\'' +
                ", origin_price=" + origin_price +
                ", now_price=" + now_price +
                ", discount=" + discount +
                '}';
    }
}
